-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add merge_asof function to catalog #409
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #409 +/- ##
==========================================
- Coverage 98.00% 97.90% -0.10%
==========================================
Files 44 44
Lines 1504 1531 +27
==========================================
+ Hits 1474 1499 +25
- Misses 30 32 +2 ☔ View full report in Codecov by Sentry. |
Click here to view all benchmarks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it and it works fine!
However, I've got this warning when running the code. This message is misleading, because margins wouldn't work anyway with the current merge_asof
implementation:
.../lsdb/dask/join_catalog_data.py:446: RuntimeWarning: Right catalog does not have a margin cache. Results may be incomplete and/or inaccurate.
warnings.warn(
That's me misusing copy and paste, fixed now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Wraps the pandas
merge_asof
function as a catalog method, only available to use on the catalogs index columns (since other columns aren't sorted without shuffling) and without using the margin cache (since Margin Caches do not maintain sorted indices)Closes #393